import type { FormRules } from "element-plus";
import { reactive } from "vue";
import { $t } from "@/plugins/i18n";

export const formRules = reactive<FormRules>({
    name: [
        { required: true, message: $t("placeholder.inputDictName"), trigger: "blur" },
    ],
    code: [
        { required: true, message: $t("placeholder.inputDictCode"), trigger: "blur" },
    ],
});

export const dataFormRules = reactive<FormRules>({
    name: [
        { required: true, message: $t("placeholder.inputName"), trigger: "blur" },
    ],
    value: [
        { required: true, message: $t("placeholder.inputDataValue"), trigger: "blur" },
    ],
});
